const downloadColumns = [
  {
    title: "订单类型",
    fixed: "left",
    width: "150px",
    ellipsis: true,
    class: "bill-order",
    scopedSlots: { customRender: "afterSaleNumber" }
  },
  {
    title: "订单编号",
    fixed: "left",
    dataIndex: "repairList.repairOrderNumber",
    width: "150px",
    ellipsis: true
  },
  {
    title: "客户单位",
    dataIndex: "repairList.companyName",
    width: "180px",
    ellipsis: true
  },
  {
    title: "故障描述",
    dataIndex: "repairList.description",
    width: "250px",
    ellipsis: true,
    class: "fault-description"
  },
  {
    title: "报修时间",
    dataIndex: "repairList.uploadTime",
    width: "180px",
    ellipsis: true
  },
  {
    title: "订单状态",
    dataIndex: "repairList.state",
    width: "150px",
    class: "bill-state",
    ellipsis: true,
    scopedSlots: { customRender: "state" }
  },
  {
    title: "操作",
    width: "200px",
    ellipsis: true,
    scopedSlots: { customRender: "operation" }
  },
  {
    title: "新建工单",
    width: "120px",
    ellipsis: true,
    scopedSlots: { customRender: "newBill" }
  },
  {
    title: "当前处理人",
    dataIndex: "appointor",
    width: "150px",
    ellipsis: true
  },
  {
    title: "报修人姓名",
    dataIndex: "repairList.repairman",
    width: "180px",
    ellipsis: true
  },
  {
    title: "报修人电话",
    dataIndex: "repairList.phoneNumber",
    width: "150px",
    ellipsis: true
  },
  {
    title: "机床型号",
    dataIndex: "repairList.macType",
    width: "240px",
    ellipsis: true
  },
  {
    title: "机床编号",
    dataIndex: "repairList.macNumb",
    width: "240px",
    ellipsis: true
  },
  {
    title: "机床厂家",
    dataIndex: "repairList.macFactory",
    width: "180px",
    ellipsis: true
  },
  {
    title: "机床位置",
    dataIndex: "repairList.address",
    width: "180px",
    ellipsis: true
  },
  {
    title: "报修机床厂",
    dataIndex: "repairList.repairCompany",
    width: "180px"
  },
  {
    title: "报单人员",
    dataIndex: "role",
    key: "role",
    width: "120px",
    ellipsis: true
  },
  {
    title: "设备购买时间",
    dataIndex: "repairList.purchaseTime",
    width: "180px",
    ellipsis: true
  },
  {
    title: "详细地址",
    dataIndex: "repairList.fullAddress",
    width: "180px",
    ellipsis: true
  },
  {
    title: "系统型号",
    dataIndex: "repairList.ncSystemType",
    width: "180px",
    class: "hello",
    ellipsis: true
  },
  {
    title: "所属片区",
    dataIndex: "afterSaleService.ownDistrict",
    width: "180px",
    ellipsis: true
  },
  {
    title: "任务类别",
    dataIndex: "afterSaleService.taskType",
    width: "180px",
    ellipsis: true
  },
  {
    title: "设备类型",
    dataIndex: "afterSaleService.equipmentType",
    width: "180px",
    ellipsis: true
  },
  {
    title: "保修状态",
    dataIndex: "afterSaleService.guaranteeState",
    width: "180px",
    ellipsis: true
  },
  {
    title: "客户类型",
    dataIndex: "afterSaleService.customerType",
    width: "180px",
    ellipsis: true
  },
  {
    title: "信息来源",
    dataIndex: "afterSaleService.informationSource",
    class: "hello",
    width: "180px",
    ellipsis: true
  },
  {
    title: "数控系统编号",
    dataIndex: "afterSaleService.ncNumber",
    width: "180px",
    ellipsis: true
  },
  {
    title: "数控系统版本",
    dataIndex: "afterSaleService.ncVersionType",
    key: "ncVersionType",
    width: "180px",
    ellipsis: true
  },
  {
    title: "数控系统SN",
    dataIndex: "afterSaleService.macSn",
    width: "180px",
    ellipsis: true
  },
  {
    title: "故障件型号",
    dataIndex: "afterSaleService.faultyPartsType",
    width: "180px",
    ellipsis: true
  },
  {
    title: "故障件编号",
    dataIndex: "afterSaleService.faultyPartsNumber",
    width: "180px",
    ellipsis: true
  },
  {
    title: "故障件使用时间",
    dataIndex: "afterSaleService.faultyPartsTime",
    width: "180px",
    ellipsis: true
  },
  {
    title: "处理时间",
    dataIndex: "afterSaleService.resolveTime",
    width: "180px",
    ellipsis: true
  },
  {
    title: "加班时间",
    dataIndex: "afterSaleService.extraTime",
    width: "180px",
    ellipsis: true
  },
  {
    title: "设备处理数量",
    dataIndex: "afterSaleService.resolveNcNumber",
    width: "180px",
    ellipsis: true
  },
  {
    title: "是否重大问题",
    dataIndex: "afterSaleService.isViIssue",
    width: "180px",
    ellipsis: true,
    scopedSlots: { customRender: "isViIssue" }
  },
  {
    title: "故障发生时间",
    dataIndex: "afterSaleService.impedimentStartTime",
    width: "180px"
  },
  {
    title: "故障类型",
    dataIndex: "afterSaleService.impedimentType",
    width: "180px",
    ellipsis: true
  },
  {
    title: "故障分类",
    dataIndex: "afterSaleService.faultClass",
    width: "180px",
    ellipsis: true
  },
  {
    title: "故障原因",
    dataIndex: "afterSaleService.impedimentReason",
    width: "180px",
    ellipsis: true
  },
  {
    title: "故障处理结果",
    dataIndex: "impedimentResolveResult",
    key: "impedimentResolveResult",
    width: "180px",
    ellipsis: true
  },
  {
    title: "现场服务工程师",
    dataIndex: "afterSaleService.fieldEngineer",
    width: "150px",
    ellipsis: true
  },
  {
    title: "需求建议",
    dataIndex: "afterSaleService.demandSuggestion",
    width: "180px",
    ellipsis: true
  },
  {
    title: "其他描述",
    dataIndex: "afterSaleService.otherDescription",
    width: "180px",
    ellipsis: true
  },
  {
    title: "解决方案",
    dataIndex: "afterSaleService.solution",
    width: "150px",
    ellipsis: true
  },
  {
    title: "重大专项课题名称",
    dataIndex: "afterSaleService.topicName",
    width: "200px",
    ellipsis: true
  },
  {
    title: "重大专项课题编号",
    dataIndex: "afterSaleService.topicNumber",
    width: "200px",
    ellipsis: true
  },
  {
    title: "重大专项应用领域",
    dataIndex: "afterSaleService.applicationRange",
    width: "200px",
    ellipsis: true
  },
  {
    title: "服务满意度",
    dataIndex: "evaluation.serviceScore",
    customRender: (text, row, index) => {
      return text + "分";
    }
  },
  {
    title: "服务回访备注",
    dataIndex: "evaluation.serviceEvaluate",
    width: "150px",
    ellipsis: true
  },
  {
    title: "产品满意度",
    dataIndex: "evaluation.produceScore",
    width: "150px",
    customRender: (text, row, index) => {
      return text + "分";
    }
  },
  {
    title: "产品回访备注",
    dataIndex: "evaluation.produceEvaluate",
    width: "150px",
    ellipsis: true
  }
];

export { downloadColumns };
